package com.ddyx.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;

import com.alibaba.fastjson.JSONObject;
import com.ddyx.entity.Customer;

public class Test {
	
    public static void main(String[] args) throws Exception {
//    	String s = "2017-02-21T17:52:12.000+08:00";
//    	String s1[] = s.split("\\.");
//    	String source = s1[0].replaceAll("T", " ");
//    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//    	DateFormat df = DateFormat.getDateInstance();
//    	Date date = sdf.parse(source);
//    	System.out.println(source);
    	
    	JSONObject notice = new JSONObject();
    	Customer cust = new Customer();
    	cust.setCustomerName("edoox");
		HashMap<String ,Object> map = new HashMap<String,Object>();
		map.put("name", "edoox");
		notice.put("data", cust);
		System.out.println(notice.toString());
    }
}
